package org.hxzon.blogbackup.baidu;

import java.util.ArrayList;
import java.util.List;

public class BlogPage {
    private int index;

    private List<BlogFile> blogFiles;

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public List<BlogFile> getBlogFiles() {
        return blogFiles;
    }

    public void setBlogFiles(List<BlogFile> blogFiles) {
        this.blogFiles = blogFiles;
    }

//	public void addBlogFile(String url, String title) {
//		if (blogFiles == null) {
//			this.blogFiles = new ArrayList<BlogFile>(15);
//		}
//		BlogFile blogFile = new BlogFile();
//		blogFile.setOrigUrl(url);
//		blogFile.setTitle(title);
//		this.blogFiles.add(blogFile);
//	}

    public void addBlogFile(BlogFile item) {
        if (blogFiles == null) {
            this.blogFiles = new ArrayList<BlogFile>(15);
        }
        this.blogFiles.add(item);
    }
}
